home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Multimedia / ^DivX_Article / virtualdub / VirtualDub-source-1_4d / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-20  |  2.2 KB  |  87 lines

  1. //    VirtualDub - Video processing and capture application
  2. //    Copyright (C) 1998-2001 Avery Lee
  3. //
  4. //    This program is free software; you can redistribute it and/or modify
  5. //    it under the terms of the GNU General Public License as published by
  6. //    the Free Software Foundation; either version 2 of the License, or
  7. //    (at your option) any later version.
  8. //
  9. //    This program is distributed in the hope that it will be useful,
  10. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. //    GNU General Public License for more details.
  13. //
  14. //    You should have received a copy of the GNU General Public License
  15. //    along with this program; if not, write to the Free Software
  16. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #ifndef f_PREFS_H
  19. #define f_PREFS_H
  20.  
  21. #include <windows.h>
  22.  
  23. ///////////////////////////////////////////////////////////////////////////
  24.  
  25. class PreferencesMain {
  26. public:
  27.     enum {
  28.         DEPTH_FASTEST    = 0,
  29.         DEPTH_OUTPUT    = 1,
  30.         DEPTH_DISPLAY    = 2,
  31.         DEPTH_16BIT        = 3,
  32.         DEPTH_24BIT        = 4,
  33.         DEPTH_32BIT        = 5,
  34.  
  35.         // The order of these must match the flags in cpuaccel.h!!
  36.  
  37.         OPTF_FORCE            = 0x01,
  38.         OPTF_FPU            = 0x02,
  39.         OPTF_MMX            = 0x04,
  40.         OPTF_INTEGER_SSE    = 0x08,        // Athlon MMX extensions or Intel SSE
  41.         OPTF_SSE            = 0x10,        // Full SSE (PIII)
  42.         OPTF_SSE2            = 0x20,        // (PIV)
  43.         OPTF_3DNOW            = 0x40,
  44.         OPTF_3DNOW_EXT        = 0x80,        // Athlon 3DNow! extensions
  45.     };
  46.  
  47.     char    iPreviewPriority;
  48.     char    iPreviewDepth;
  49.     char    iDubPriority;
  50.     char    fAttachExtension;
  51.     char    fOptimizations;
  52. };
  53.  
  54. class PreferencesScene {
  55. public:
  56.     int        iCutThreshold;
  57.     int        iFadeThreshold;
  58. };
  59.  
  60. class Preferences {
  61. public:
  62.     PreferencesMain    main;
  63.     PreferencesScene scene;
  64.  
  65.     enum {
  66.         DISPF_DITHER16    = 0x01,
  67.     };
  68.  
  69.     char fDisplay;
  70.     char fAVIRestrict1Gb;
  71.     char fNoCorrectLayer3;
  72. };
  73.  
  74. ///////////////////////////////////////////////////////////////////////////
  75.  
  76. BOOL APIENTRY PreferencesDlgProc        ( HWND hDlg, UINT message, UINT wParam, LONG lParam);
  77.  
  78. ///////////////////////////////////////////////////////////////////////////
  79.  
  80. #ifndef f_PREFS_CPP
  81. extern Preferences        g_prefs;
  82. #endif
  83.  
  84. void LoadPreferences();
  85.  
  86. #endif
  87.